<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:constants="http://www.tuanzi.com/constants/tags">
    <div class="ui-g">
        <div class="ui-g-12">
            <p:dataTable
                    style="width: 110%"
                    emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                    scrollable="true"
                    scrollWidth="97%"
                    reflow="true"
                    resizableColumns="true"
                    var="record"
                    value="#{loanApiOrderInfoBean.$.recordView.records}">

				<p:column headerText="合作方名称">
					<h:outputText value="点融" rendered="#{record.type == 11}" />
					<h:outputText value="乐贷款" rendered="#{record.type == 17}" />
				</p:column>

				<p:column headerText="订单编号">
					<h:outputText value="#{record.orderId}" />
				</p:column>

				<p:column headerText="合作方接口名称">
					<h:outputText value="#{record.name}" />
				</p:column>

				<p:column headerText="请求信息">
					<h:outputText value="#{record.requestJson}" />
				</p:column>

				<p:column headerText="返回信息">
					<h:outputText value="#{record.responseJson}" />
				</p:column>

				<p:column headerText="请求URL">
					<h:outputText value="#{record.url}" />
				</p:column>

				<p:column headerText="请求时间">
                    <h:outputText value="#{record.createTime}">
                        <f:convertDateTime pattern="#{constants:get('DATETIME_FORMAT')}"/>
                    </h:outputText>
                </p:column>
            </p:dataTable>
        </div>
    </div>
</ui:composition>